package com.hexiaohe.springboot_vue_app.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hexiaohe.springboot_vue_app.entity.User;
import com.hexiaohe.springboot_vue_app.utils.Result;


public interface UserService  {
    public Result<User>  login(User user);
    Page<User> findPage(Page<User> page, String nickName);
    public int addUser(User user);
    public int updateById(User user);
    public int deleteUserById(int userId);
    public int registerUser(User user);
    public boolean getUserByUsername(User user);
    public int updatePerson(User user);
    public boolean selectUsername(String username,String password);
    int updatePassword(String username,String xpassword);
}
